<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="author" content="wangbo">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>模块化使用</title>
</head>
<body>
   <script src="./chp09模块演变1.js"></script>
   <script>
      // 外部js 变成js 变量名,重复率降低
      let num = "李四"
      let show = function () {
         
      }
      // 外部依旧可以改变num的值,导致函数发生错误
      modul.num = "2000"
      modul.show()

   </script>
</body>
</html>